const Router = require('koa-router')
const User =require('../dbs/models/users') 
let router = new Router({prefix: '/users'})

router.get('/getUser',async (ctx)=>{
    let Users = await User.find()
    ctx.body = {
        code:0,
        userlist:Users
    }
})

module.exports = router